import service from '../request'

/**
 * 添加权限
 * @param {*} data 
 * @returns 
 */
export function addRangeApi(data) {
  return service({
    url: '/range/add',
    method: 'post',
    data
  })
}

/**
 * 更新权限
 * @param {*} data 
 * @returns 
 */
export function updateRangeApi(data) {
  return service({
    url: '/range/update',
    method: 'post',
    data
  })
}

/**
 * 删除权限
 * @param {*} data 
 * @returns 
 */
export function deleteRangeApi(data) {
  return service({
    url: '/range/delete',
    method: 'post',
    data
  })
}
